Skip to content

Conversation

@mtfishman
Copy link
Collaborator

The unsorted implementations of the truncation strategies TruncatedKeepAbove/Below weren't handling negative values in the spectrum properly since they weren't mapping the spectrum by abs. This PR fixes that, along with adding support for customizing the mapping function with a new field by (and allowing customizing by in a few other cases).

@codecov
Copy link

codecov bot commented Jun 1, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/implementations/truncation.jl 92.85% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/algorithms.jl 82.92% <ø> (ø)
src/implementations/truncation.jl 88.42% <92.85%> (+4.90%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Jutho Jutho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me(rge)

@mtfishman mtfishman merged commit 2acaccd into main Jun 3, 2025
9 checks passed
@mtfishman mtfishman deleted the mf/truncbelow_customize_by branch June 3, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants